import {createRouter, createWebHashHistory } from 'vue-router'

const routes= [
	{ path: '/login', component: () => import('@views/login.vue') },
	{ path: '/main', component: () => import('@views/index.vue')},
	/* 重定向 */
	{ path: '', 	redirect: '/main/my/title' },
	{ path: '/:pathMatch(.*)*', component: () => import('@views/404.vue') }
]

export default createRouter({
	history: createWebHashHistory(),
	routes
})